package experiment.e05.code.ch04.v1;

import experiment.e05.code.ch04.v0.Point;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 16:07
 * @package experiment.e05.code.ch04.v1
 * @description Shape 类
 */

public class Shape {
    // 成员变量
    private Point point;

    // 构造方法
    public Shape() {
    }

    public Shape(Point point) {
        this.point = point;
    }

    // get && set
    public Point getPoint() {
        return point;
    }

    public void setPoint(Point point) {
        this.point = point;
    }

    @Override
    public String toString() {
        return this.point.toString();
    }
}
